﻿<sdk:CustomSettingsDialog x:Class="mediaPrime.Plugin.TV.UserControls.TVServerProviderSettingsDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="clr-namespace:mediaPrime.Controls;assembly=mediaPrime.Controls"
             xmlns:sdk="clr-namespace:mediaPrime.Sdk;assembly=mediaPrime.Sdk"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <controls:MPListBox ItemClicked="listBox_ItemClicked" x:Name="listBox">
            <controls:MPListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Image Margin="0,4" Source="{Binding Icon}"></Image>
                        <TextBlock Grid.Column="1" Margin="8,0,0,0" VerticalAlignment="Center" Text="{Binding Name}"></TextBlock>
                    </Grid>
                </DataTemplate>
            </controls:MPListBox.ItemTemplate>
        </controls:MPListBox>
    </Grid>
</sdk:CustomSettingsDialog>
